//
//  CustomSlider.h
//  CoolTennisBall
//
//  Created by Coollang on 16/7/30.
//  Copyright © 2016年 CoolLang. All rights reserved.
//

#import <UIKit/UIKit.h>


#define UnitSpace(Total,span) (100/(Total/span))

@interface CustomSlider : UIView

// 设置初始值 [0 - 1]
@property (nonatomic, assign)CGFloat value;

/**
 *  当前的的值
 */
@property (nonatomic, assign)CGFloat curretTarget;
/**
 *  分度值
 */
@property (nonatomic, assign)CGFloat sliderSpan;

/** 最大值 */
@property (nonatomic, assign)NSInteger maxValue;



@property (nonatomic, copy)void (^valueChange)(CGFloat value);

- (void)setSliderValueAndCurrentTarget:(CGFloat)CurrentTarget;

- (void)setSliderSpan:(CGFloat)span maxValue:(NSInteger)maxValue;

@end
